﻿<Window x:Class="Dynamic_UI_Framework.ToolBar"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="ToolBar"
        Width="292"
        Height="613">
    <Grid>
        <TabControl>
            <TabItem Name="tiUITree" Header="UITree">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="50" />
                        <RowDefinition />
                    </Grid.RowDefinitions>

                    <Button Name="btnSaveUITree"
                            Grid.Row="0"
                            Width="100"
                            Height="30"
                            HorizontalAlignment="Left"
                            Content="保存" 
                            Click="btnSaveUITree_Click"
                            />

                    <TreeView Name="tvUITree" Grid.Row="1" />
                </Grid>
            </TabItem>
            <TabItem Name="tiRegions" Header="Regions">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="50" />
                        <RowDefinition />
                    </Grid.RowDefinitions>

                    <Menu Grid.Row="0"
                          Width="100"
                          Height="30"
                          HorizontalAlignment="Left">
                        <MenuItem Name="menuRegion" Header="新建" />
                    </Menu>

                    <ListBox Name="lbRegions"
                             Grid.Row="1"
                             MouseDoubleClick="lbRegions_MouseDoubleClick" />

                </Grid>
            </TabItem>
            <TabItem Name="tiElements" Header="Elements">
                <ListBox Name="lbElements" />
            </TabItem>
            <TabItem Name="tiParts" Header="Parts">
                <TreeView Name="tvParts" />
            </TabItem>
        </TabControl>
    </Grid>
</Window>
